<f:view xmlns="http://www.w3.org/1999/xhtml"
   xmlns:f="http://java.sun.com/jsf/core"
   xmlns:h="http://java.sun.com/jsf/html"
   xmlns:ui="http://java.sun.com/jsf/facelets"
   xmlns:c="http://java.sun.com/jstl/core"
   xmlns:af="http://myfaces.apache.org/trinidad"
   xmlns:afh="http://myfaces.apache.org/trinidad/html"
   xmlns:html="http://www.w3.org/TR/REC-html40">

   <af:panelBorderLayout id="activityPanel-page"
      binding="#{activityInstanceDialog.ctrlWorkareaPage}"
      inlineStyle="width: 100%; height: 100%;">
      <c:if test="#{('ui:include' == portalHeader.panelIntegrationStrategy) and not empty activityInstanceDialog.panelUrl}">
         <ui:insert name="faceletsActivityPanel">
            <ui:include id="activityPanel-workAreaInclude"
               src="#{activityInstanceDialog.panelUrl}">
               <ui:param name="InCarnotProcessPortal" value="${true}" />
            </ui:include>
         </ui:insert>
      </c:if>

      <c:if test="#{('iframe' == portalHeader.panelIntegrationStrategy)}">
         <iframe id="ipp-embedded-activity-panel" name="ipp-embedded-activity-panel"
            frameborder="0" marginheight="0"
            marginwidth="0" scrolling="auto" src="" align="middle"
            height="100%" width="100%"></iframe>

      <afh:script id="script-workareaRefresh"
         binding="#{activityInstanceDialog.ctrlWorkareaReloadScript}"
         text="#{activityInstanceDialog.workareaReloadCode}"
         rendered="#{('iframe' == portalHeader.panelIntegrationStrategy) and not empty activityInstanceDialog.panelUrl}" />

      </c:if>

   </af:panelBorderLayout>
   
</f:view>